<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>订单打印详情</title>
{css href="__TPL_CSS__/print1.css" /}
{css href="__TPL_CSS__/bootstrap.min.css" /}
</head>

<style>
.orderprint{
	margin-top: 0px;
	width: 100%;
}
.orderprint .top{
	height: 45px;
	width: 100%;
}
.orderprint table{
	line-height: 16px;
}
.qrcode{
	margin-bottom: -70px;
}
.qrcode img{
	margin-right: 10px;
	width: 60px;
	height: 60px;
}
</style>
<body>
	<div class="orderprint">
		{if $qrshow===1}
		<div class="qrcode">
			<img src="{$qrcode_url}"/>
				<div>{$print.deal_qrcode_tips}</div>
		</div>
		{/if}
		<div class="top">
			<div class="full-title">{$print.title}销售出货单</div>
			<div class="full-title3">联系电话：{$print.phone}</div>
		</div>
		  <table class="buyer-info">
			<tr>
			  <td height="22" class="w240">订单号：<span class="form-control-static">{$T.number} </span></td>          
			</tr>
			<tr>
			  <td height="22">客户：{if $T.customer.company == ''}{$T.customer.name}{else/}{$T.customer.company}{/if}</td>
			  <td height="22" align="right"><span class="form-control-static">{$T.create_time|date="Y年m月d日"}</span></td>
			</tr>
		  </table>
		  <table class="order-info">
			<thead>
			  <tr>
				<th width="6%">编号</th>
				<th width="18%">品名</th>
				<th width="4%">色号</th>
				<th width="8%">颜色</th>
				<th width="3%"></th>
				<th width="4%">1</th>
				<th width="4%">2</th>
				<th width="4%">3</th>
				<th width="4%">4</th>
				<th width="4%">5</th>
				<th width="4%">6</th>
				<th width="4%">7</th>
				<th width="4%">8</th>
				<th width="4%">单位</th>
				<th width="5%">数量</th>
				<th width="4%">- KG</th>
				<th width="5%">单价</th>
				<th width="8%">金额</th>
			  </tr>
			</thead>
			<tbody>
			   {volist name="Tinfo" id="v"}
				<tr>
					<td>{$v.number}</td>
					<td style="text-align:left; padding:0px 5px;">{$v.name}</td>
					<td>{$v.color}</td>
					<td>{$v.colorname}</td>
					<td style="background:#{$v.colorval}"></td>
					{php}
					foreach($v['weight'] as $val){
					   echo '<td>'.$val.'</td>';
					}
					{/php}
					<td>{$v.unit}</td>
					<td>{$v.count}</td>
					<td>{if $T['reduce'] > 0}-{$v.reduce}{/if}</td>
					<td>{$v.unitprice|price_one}</td>
					<td class="right">{$v.total|price_one}</td>
				</tr>
				{/volist}
				{php}
				$len=10-count($Tinfo);
				if($len>0){
				  for($i=0;$i<=$len;$i++){
					echo '<tr><td>&nbsp;</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>';
				  }
				}
				{/php}
			</tbody>
			<tfoot>
			  <tr>
				<td colspan="7" style="text-align:left; padding-left:5px;">总金额（大写）RMB ：<span class="cny">{$T.total|cny}</span></td>
				<td colspan="11" style="text-align:right; padding-right:5px;">
					共 {$T.volume} 匹 &nbsp;&nbsp;&nbsp;&nbsp;
					数量：{$T.count}&nbsp;&nbsp;
					{if $T['freight'] > 0}运费：&yen; {$T.freight|price_one}&nbsp;&nbsp;{/if}
					{if $T['coupon'] > 0 && $T['paytype']=='公账开票'}税费：&yen; {$T.coupon|price_one}&nbsp;&nbsp;{/if}
					{if $T['coupon'] > 0 && $T['paytype']!='公账开票'}差价：&yen; {$T.coupon|price_one}&nbsp;&nbsp;{/if}
					{if $T['coupon'] < 0}优惠：&yen; {$T.coupon|price_one}&nbsp;&nbsp;{/if}
					总计：&yen; {$T.total|price}
				</td>
			  </tr>
			  <tr class="remark">
				<td colspan="18" style="text-align:left;">{$print.deal_remark|raw}</td>
			  </tr>
			</tfoot>
		  </table>
		<div class="explain">
		</div>
	</div>

</body>
</html>